package com.so.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 菜单类型枚举
 *
 * @author system
 */
@Getter
@AllArgsConstructor
public enum MenuTypeEnum implements IEnum<String> {

    TYPE_DIR("M","目录"),
    TYPE_MENU("C","菜单"),
    TYPE_BUTTON("F","按钮");

    /**
     * code
     */
    @EnumValue
    @JsonValue
    private final String code;

    /**
     * 描述
     */
    private final String info;

    @Override
    public String getValue() {
        return code;
    }
}
